package com.aeye.mbr.upms.rpc.api;

import com.aeye.mbr.common.plugin.mapper.BaseService;
import com.aeye.mbr.common.result.BootstrapTableParams;
import com.aeye.mbr.common.result.BootstrapTableResult;
import com.alibaba.fastjson.JSONArray;
import com.aeye.mbr.upms.dao.model.UpmsPermission;

/**
* UpmsPermissionService接口
* Created by shuzheng on 2017/3/20.
*/
public interface UpmsPermissionService extends BaseService<UpmsPermission> {

    JSONArray getTreeByRoleId(Integer roleId);

    JSONArray getTreeByUserId(Integer usereId, Byte type);


    /**
     * 根据条件获取系统数据
     * @param params
     * @return
     */
    BootstrapTableResult<UpmsPermission> selectUpmsPermissionByParams(BootstrapTableParams params, int type, int systemId);



}